import sys
import __builtin__
from client.gamestates.stateabstract import StateAbstract
from client.networking.networkmanager import NetworkManager


class StateLobby(StateAbstract):
    def __init__(self):
        super(StateLobby, self).__init__("MultiLobby")
        self.clients_online = 0

    def activate(self):
        __builtin__.base.guimanager.create_lobby()
        __builtin__.base.networkmanager.send_request_gamelist()
        __builtin__.base.networkmanager.request_user_online()

    def deactivate(self):
        __builtin__.base.guimanager.destroy_current_gui()

    def update(self, dt):
        pass#print("updating " + self.name)